package com.songshuai.webapi.baseapi.constant.miniprogram;

public class CacheKeys {

    // 失效时间10*60秒
    public static final Long TIME_OUT_1 = 600L;
    //前缀
    public static final String  SUFFIXKEY= "client:";
    //分隔符
    public static final String  SEPARATOR= "_";
    //线索导入信息KEY
    public static final String  CLUE_IMPORT_INFO_JSON_STR= "clue_import_info_json_str";


    public static final String OPENID = "openid";//微信openid  用于token作为key  存放用户openId

    public static final String OPENID_KEY = "openid_key";//微信openid 销售端  用于openid作为key  存放用户token

    public static final String OPENID_CUST_KEY = "openid_cust_key";//微信openid 客户端  用于openid作为key  存放用户token

    public static final String WXPLATFORM_KEY = "wxPlatform_key";

    public static final String SESSION_KEY = "session_key";//微信session_key

    public static final Integer ONE_DAY = 24*3600;//一天

    public static final String PANGU_USER_ID = "PANGU_USER_ID";//盘古系统用户id


    public static final String PANGU_CUST_ID = "pangu_customer_id";//盘古系统用户信息

    //客户端SOP列表缓存
    public static final String CUST_SOP_INFO = "cust_sop_info";

    //客户端动态SOP列表缓存
    public static final String CUST_DYNAMIC_SOP_INFO = "cust_dynamic_sop_info";

    //销售端SOP列表缓存
    public static final String SALE_SOP_INFO = "sale_sop_info";


    public static String getPhpSopUseNum(Integer sopId) {
        return "sales_tool:sop:" + sopId + ":use_num";
    }

}
